package org.bdware.doip.core.codec.packet;

import io.netty.channel.ChannelHandlerContext;
import org.bdware.doip.core.doipMessage.MessageEnvelope;

public abstract class AbstractEnvelopeSendBuffer {

    public int requestId;
    public boolean isCompleted;

    public AbstractEnvelopeSendBuffer(int requestId){
        this.requestId = requestId;
    }

    abstract public void pushToBuffer(MessageEnvelope env);

    abstract public boolean receiveAck(MessageEnvelope env);

    public boolean isCompleted(){
        return isCompleted;
    };
}
